package yydy.pattern.structure.facade.example;

import yydy.pattern.common.impl.shape.Circle;
import yydy.pattern.common.impl.shape.Rectangle;
import yydy.pattern.common.impl.shape.Square;
import yydy.pattern.common.interfaces.Shape;

/**
 * @author LY
 * @description: TODO
 * @title: ShapeMaker
 * @projectName yydy_learn
 * @date 2020/11/4
 */
public class ShapeMaker {

    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
